package db;

public class DBRecord {

	private String title;
	private String artist;
	private String relativeFolder;
	private String rating;
	private int length;

	public DBRecord(String aTitle, String anArtist, String aRating,
			String aRelativeFolder) {
		title = aTitle;
		artist = anArtist;
		relativeFolder = aRelativeFolder;
		rating = aRating;
		relativeFolder = aRelativeFolder;
	}

	public String getTitle() {
		return title;
	}

	public String getArtist() {
		if ((artist == null) || ("".equals(artist))) {
			artist = "???";
		}
		return artist;
	}

	public String getRelativeFolder() {
		return relativeFolder;
	}

	public String getRating() {
		return rating;
	}

	/* Length in seconds */
	public void setLength(int lengthInSec) {
		length = lengthInSec;
	}
	
	public int getLength() {
		return length;
	}
}
